package com.ruoyi.system.service.smy;

import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.core.domain.smy.SecurityWebUser;

import java.util.List;

public interface ISecurityWebUserService {

	public SecurityWebUser selectSecurityWebUserById(Long id);

	public List<SecurityWebUser> selectSecurityWebUserList(SecurityWebUser securityWebUser);

	public int insertSecurityWebUser(SecurityWebUser securityWebUser);

	public int updateSecurityWebUser(SecurityWebUser securityWebUser);

	public int deleteSecurityWebUserByIds(Long[] ids);

	public int deleteSecurityWebUserById(Long id);

	/**
	 * 修改商家状态
	 * @param optId 商家ID
	 * @param optName 1启用 0停用
	 */
	void changeMerchantStatus(String optId, String optName);

	void upgradeDistributor(String userId, String shopName);

	/**
	 *  根据用户ID查询微信小程序用户信息
	 * @Date 2022/10/24 22:02
	 * @author ZhanCheng.Li
	 * @param id
	 * @return
	 */
	SecurityWebUser selectMicroUserById(Long id);

	/**
	 *  查询微信小程序会员列表
	 * @Date 2022/10/24 22:24
	 * @author ZhanCheng.Li
	 * @param securityWebUser
	 * @return
	 */
	List<SecurityWebUser> selectMicroUserPage(SecurityWebUser securityWebUser);

	/**
	 * 根据商家ID关联查询出个人信息
	 * @Date 2022/10/25 11:49
	 * @author ZhanCheng.Li
	 * @param id
	 * @return
	 */
	SecurityWebUser selectMerchantWithPersonalInfo(Long id);

	void autoCreateSecurityWebUser(SysUser user);
}
